<div class="card offShelf box newbox text-white bg-dark" id="itemID<%= itemID %>" onclick="loadItemModal(this.id.replace('itemID', ''))" data-toggle="modal"
  data-target="#itemModal" style="cursor: pointer;">
  <div class="card-body">
    <h5 class="card-title">[已下架]<%= itemName %></h5>
    <h5 class="card-subtitle">￥<%= itemPrice%></h5>
    <p class="card-text"><%= itemDescription%></p>
    <h5 class="card-sublitle">
      <% if (trans.deliverByPost) {%>
      <span class=" badge badge-primary">邮寄</span>
      <%}%>
        <% if (trans.deliverByFace) {%>
      <span class=" badge badge-success">当面交易</span>
      <%}%>
        <% if (trans.deliverNoNeed) {%>
      <span class=" badge badge-success">无需运送</span>
      <%}%>
        </h5>
    </div>
</div>